package com.dotflat.photoAlbum.repository;


import com.dotflat.photoAlbum.domain.PhotoAlbumStaticTemplatePage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface PhotoAlbumTemplatePageRepository extends JpaRepository<PhotoAlbumStaticTemplatePage, String>, JpaSpecificationExecutor<PhotoAlbumStaticTemplatePage> {

       List<PhotoAlbumStaticTemplatePage> findAllByTemplateIdOrderByCapacityDesc(String templateId);

}
